package com.jiazhong.springmvc.test01;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Auther:shuXin
 */
@Controller
@RequestMapping("path")
@ResponseBody
public class PathController {

    @RequestMapping("{account}/{password}")
    public String login(@PathVariable(value = "account") String username,@PathVariable String password){
        System.out.println(username+" "+password);
        return  username+" "+password;
    }
}
